<!DOCTYPE html>
<html>
<title>佳好友-相信好货相信好友</title>
<script language="javascript">
window.onload = function () {
	var u = navigator.userAgent;
	if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) {//安卓手机
		if(isTencent()){
			window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.sw.jiafriend";
		}else{
			window.location.href = "<{:C('APP_ANDROID_UPDATE_URL')}>";
		}
	} else if (u.indexOf('iPhone') > -1) {//苹果手机
		window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.sw.jiafriend";
	} else{
		alert("暂不支持当前系统");
	}
}
function isTencent() {
	var ua = window.navigator.userAgent.toLowerCase();
	console.log(ua);//mozilla/5.0 (iphone; cpu iphone os 9_1 like mac os x) applewebkit/601.1.46 (khtml, like gecko)version/9.0 mobile/13b143 safari/601.1
	if (ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/QQ\//i) == 'qq/') {
		return true;
	} else {
		return false;
	}
}
</script>
</html>